package dvdproject;

public class Dvd {
    String Id;  // dvd 编号
    String name;  // 名称
    double cost;  // 日租金
    String upLoadDate;//上架时间
    String borrowDate;  //出租日期
    String returnDate;// 归还日期
    DvdStatus status;// dvd 状态
    int times; // 出租次数
    double borrowMoney;//出租金额
    int index;//该Dvd在数组中的过经引位置

    //打印DVD的信息

    @Override
    public String toString() {
        return "Dvd{" +
                "Id='" + Id + '\'' +
                ", name='" + name + '\'' +
                ", cost=" + cost +
                ", upLoadDate='" + upLoadDate + '\'' +
                ", borrowDate='" + borrowDate + '\'' +
                ", returnDate='" + returnDate + '\'' +
                ", status=" + status.message +
                ", times=" + times +
                ", borrowMoney=" + borrowMoney +
                ", index=" + index +
                '}';
    }
}
